package org.lookouster.mopg.test;

import static org.junit.Assert.*;

import org.junit.Test;
import org.lookouster.mopg.MoPGRunner;
import org.lookouster.mopg.bo.Payment;
import org.lookouster.mopg.bo.ServiceProvider;
import org.lookouster.mopg.connector.BillFileImporter;
import org.lookouster.mopg.connector.Database;

public class MainTester {

	@Test
	public void testDoImport() {
		Database.connect();
		BillFileImporter bfi = new BillFileImporter(1, "C:\\Dev\\workspace\\MoPG\\res\\factures_sbee_03_2013.csv", "|");
		System.out.println("Import result: " + bfi.doImport());
	}
	
	@Test
	public void testPaymentNoGenerator()
	{
		Database.connect();
		System.out.println(Payment.generateNewPaymentNumber(new ServiceProvider(1)));
	}
	
	public void testTaskScheduler()
	{
		new MoPGRunner(5);
	    System.out.format("Task scheduled.%n");
	}

}
